﻿YUI.add('recursoView', function (Y) {
	Y.RecursoView = Y.Base.create('recursoView', Y.View, [], {
		initializer: function () {
			that = this;
			request = Y.io('/js/vistas/cuestionarios/templates/recurso.html', {
				on: {
					complete: function (id, response) {
						debugger
						var template = Y.Handlebars.compile(response.responseText);
						that.get('container').setHTML(template(that.get('model')));
					}
				}
			});
		},
		render: function () {
			return this;
		}
	});
}, '0.0.1', { requires: ['view', 'io-base', 'recursoModel', 'handlebars'] });